package com.aaa.mbs.service.feign;

import com.aaa.common.util.Result;
import com.aaa.mbs.entity.Coupon;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: 10178
 * @Date: 2021/1/23 16:04
 * @Description:
 */
@FeignClient("MARKETSERVICE")
public interface CouponFeignService {
    @PostMapping("/coupon/queryAll")
    Result<PageInfo<Coupon>> queryAll(@RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize, @RequestBody Coupon coupon);

    @PutMapping("/coupon/update")
    Result<Coupon> update(@RequestBody Coupon coupon);

    @PostMapping("/coupon/insert")
    Result<Coupon> insert(@RequestBody Coupon coupon);
}
